package com.wuxianggujun.ide.ui.main;

import android.os.Bundle;
import android.view.View;

import androidx.annotation.Nullable;

import com.wuxianggujun.ide.ui.StyledSettingsUI;
import com.wuxianggujun.ide.ui.StyledUI;
import com.wuxianggujun.ide.ui.databinding.ActivityMainBinding;

/**
 * @project: JvIDE
 * @author: WEG
 * @description:
 **/
public class MainUI extends StyledSettingsUI {
    private ActivityMainBinding mainBinding;


    @Override
    protected void onUICreated(@Nullable Bundle savedInstanceState) {
    }

    @Override
    protected View getViewBindingRoot() {
        if (mainBinding==null)
            mainBinding=ActivityMainBinding.inflate(getLayoutInflater());
        return mainBinding.getRoot();
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
        if (mainBinding!=null)
        mainBinding=null;
    }
}
